package com.xiaofeng.pochi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaofeng.pochi.pojo.ShopBrandCategory;
import com.xiaofeng.pochi.pojo.SysHelp;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/08/09/23:18
 * @Description:
 */
@Component
public interface ShopBrandCategoryMapper extends BaseMapper<ShopBrandCategory> {

    /**
     * 批量插入
     * @param brandCategoryList
     */
    void saveBatch(List<ShopBrandCategory> brandCategoryList);

    /**
     * 根据品牌ID删除
     * @param id
     */
    void deleteByBrandId(Long id);

    /**
     * 根据品牌ID查询
     * @param id
     * @return
     */
    List<ShopBrandCategory> getByBrandId(Long id);


    List<ShopBrandCategory> getByCategoryId(Long categoryId);
}
